package com.yidiandao.business.ui.widget.listview.viewholder;

import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.yidiandao.business.R;
import com.yidiandao.business.ui.widget.listview.ViewHolder;

/** 确认订单-商品清单-购买商品-ViewHolder */
public class BuyGoodsHolder extends ViewHolder {

    public ImageView ivGoodsImage;
    public TextView tvTitle;
    public TextView tvPrice;
    public TextView tvCount;
    public RelativeLayout rootLayout;

    @Override
    protected void initView(View rootView) {
        ivGoodsImage = (ImageView) rootView.findViewById(R.id.iv_goods_image);
        tvTitle = (TextView) rootView.findViewById(R.id.tv_title);
        tvPrice = (TextView) rootView.findViewById(R.id.tv_price);
        tvCount = (TextView) rootView.findViewById(R.id.tv_count);
        rootLayout = (RelativeLayout) rootView.findViewById(R.id.root_layout);
    }

    @Override
    protected int getItemLayoutId() {
        return R.layout.item_buy_goods;
    }
}
